<template>
  <div class="dashboard-container">

    <!-- <div v-permission="['editor']">非管理员权限</div>
    <div v-permission="['admin']">管理员权限</div> -->

    <h2 class="text-center pt-30">欢迎您</h2>

  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  data() {
    return {
      currentRole: 'adminDashboard'
    }
  },
  computed: {
    ...mapGetters([
      'roles'
    ])
  },
  created() {
    const a = this.$tools.isImg('https://xianniu-image.oss-cn-beijing.aliyuncs.com/authImg/2021/06/15/e7613a7ce14946819d92e1e2f7ea46ab.png')
    console.log(a)
    // if (!this.roles.includes('admin')) {
    //   this.currentRole = 'editorDashboard'
    // }
  }
}
</script>
